using System;
using System.Collections.Generic;
using System.Text;
using Instedd.Labs.Geo.Library.GPS;
using Instedd.Labs.Geo.Library.Kml;

namespace Instedd.Forms.Library.Tests
{
    class MockGeoCoder : IGeoCoder
    {
        #region IGeoCoder Members

        public void Initialize(object initData)
        {
            
        }

        public Instedd.Labs.Geo.Library.Kml.LatLong GetLatLongFromPostalAddress(string postalAddress)
        {
            if (postalAddress == "4040 54th st,Redmond,WA,4444")
            {
                return new LatLong(12.22, 44.55);
            }
            else if (postalAddress == "4040 54th st,Redmond,WA")
            {
                return new LatLong(12.23, 44.56);
            }
            else if (postalAddress == "4040 54th st,Redmond")
            {
                return new LatLong(12.24, 44.57);
            }
            else if (postalAddress == "4040 54th st")
            {
                return new LatLong(12.25, 44.58);
            }

            return null;
        }

        #endregion
    }
}
